
<!-- Copyright 2014 Intel Corporation, All Rights Reserved.

 Licensed under the Apache License, Version 2.0 (the"License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied. See the License for the
 specific language governing permissions and limitations
 under the License.
 -->

{% extends 'base.html' %}
{% load i18n %}
{% block title %}{% trans "Ceph Upgrade" %}{% endblock %}

{% block page_header %}
  {% include "horizon/common/_page_header.html" with title=_("Ceph Upgrade") %}
    <link href="{{ STATIC_URL }}dashboard/css/storageserver.css" rel="stylesheet">
{% endblock page_header %}

{% block main %}
    {% csrf_token %}
<div id="divCephUpgradeForm" >
    <div class="left">
        <form>
            <fieldset>
                {% include "horizon/common/_form_fields.html" %}
            </fieldset>
        </form>
    </div>
    <div class="right">
        <h3>{% trans "Description" %}:</h3>
        <p>{% trans "From here you can upgrade ceph.Before submit,please make sure the Controller can access the package and key url." %}</p>
        <h3>{% trans "Notes" %}:</h3>
        <p>{% trans "- Proxy URL looks like 'proxy=http://username:password@proxy_ip:port/'" %}</p>
        <p>{% trans "- Make sure the ssh user has made mutual trust with all ceph nodes." %}</p>
    </div>

    <div class="table_title" hidden="hidden">Ceph Upgrade</div>

     <div id="divFormOptions" class="vsm-options-bar" style="clear:both">
        <button id="btnCephUpgrade" class="btn btn-primary">{% trans "Submit" %}</button>
        <a id="btnCancel" class="btn btn-default" style="color:black" href="/dashboard/vsm/cephupgrade/">{% trans "Cancel" %}</a>
    </div>
</div>

{% endblock %}

{% block js %}
    {{ block.super }}
    <script src='{{ STATIC_URL }}dashboard/js/vsm.spin.js' type='text/javascript' charset='utf-8'></script>
    <script src='{{ STATIC_URL }}dashboard/js/upgrademgmt.js' type='text/javascript' charset='utf-8'></script>
{% endblock %}

